package com.leiduoduo.oms.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)      //链式编程
@Validated      //jsr303校验
@Component
public class User implements Serializable {
//    用户id
    private int id;
//    用户名
    private String name;
    private String avatar;
    private String phone;
    private String app_code;
    private String token;
    private String created_at;
    private String updated_at;
    private Byte alive;
    private String db_source;
}
